﻿package com.wandian.model.http
{
	import com.wandian.data.GameData;
	import com.wandian.model.http.ServerConfig;
	
	import flash.events.NetStatusEvent;
	import flash.net.Responder;

    public class UserData extends ServerConfig
    {
        private var objResponse:Object;

        public function UserData() : void
        {
            return;
        }

        public function getUserInfo(param1:Function, param2:Function) : void
        {
            this.objConnect.call("Amember.load", new Responder(param1, param2), {sesskey:GameData.sesskey, data:{}});
            this.objConnect.addEventListener(NetStatusEvent.NET_STATUS, param2);
            return;
        }

        public function requestFriendList(param1:Function) : void
        {
            this.objConnect.call("Afriend.getFriends", new Responder(param1, this.serverFault), {sesskey:GameData.sesskey, data:{}});
            return;
        }

        public function requestProfile(param1:uint, param2:Function) : void
        {
            this.objConnect.call("Amember.getProfile", new Responder(param2, this.serverFault), {sesskey:GameData.sesskey, data:{mid:param1}});
            return;
        }

        public function requestMyProp(param1:Function) : void
        {
            this.objConnect.call("Aprops.getPropsList", new Responder(param1, this.serverFault), {sesskey:GameData.sesskey, data:{}});
            return;
        }

        public function requestMyHonor(param1:uint, param2:Function) : void
        {
            this.objConnect.call("Ahonor.get", new Responder(param2, this.serverFault), {sesskey:GameData.sesskey, data:{mid:param1}});
            return;
        }

        public function requestToDayCornucopiaList(param1:int, param2:Function) : void
        {
            this.objConnect.call("Atreasure.getAllRecords", new Responder(param2, this.serverFault), {sesskey:GameData.sesskey, data:{page:param1}});
            return;
        }

        public function requestMyCornucopiaList(param1:Function) : void
        {
            this.objConnect.call("Atreasure.getMyRecords", new Responder(param1, this.serverFault), {sesskey:GameData.sesskey, data:{}});
            return;
        }

        public function requestGameMessageList(param1:Function) : void
        {
            this.objConnect.call("Anotice.getAllInfo", new Responder(param1, this.serverFault), {sesskey:GameData.sesskey, data:{}});
            return;
        }

        public function requestWealthRecord(param1:Function) : void
        {
            this.objConnect.call("Awealth.getAllRecords", new Responder(param1, this.serverFault), {sesskey:GameData.sesskey, data:{}});
            return;
        }

        public function requestMyPrize(param1:Function) : void
        {
            this.objConnect.call("Aaward.getLogin", new Responder(param1, this.serverFault), {sesskey:GameData.sesskey, data:{}});
            return;
        }

        public function requestRankPrize(param1:int, param2:Function) : void
        {
            this.objConnect.call("Aaward.getTop", new Responder(param2, this.serverFault), {sesskey:GameData.sesskey, data:{type:param1}});
            return;
        }

        public function requestTopPrize(param1:int, param2:int, param3:Function) : void
        {
            this.objConnect.call("Aaward.topAward", new Responder(param3, this.serverFault), {sesskey:GameData.sesskey, data:{type:param1, rank:param2}});
            return;
        }

        public function requestAccPrize(param1:int, param2:int, param3:Function) : void
        {
            this.objConnect.call("Aaward.accAward", new Responder(param3, this.serverFault), {sesskey:GameData.sesskey, data:{type:param1, times:param2}});
            return;
        }

        public function requestLoginPrize(param1:int, param2:Function) : void
        {
            this.objConnect.call("Aaward.loginAward", new Responder(param2, this.serverFault), {sesskey:GameData.sesskey, data:{days:param1}});
            return;
        }

        public function requestVIPPrize(param1:int, param2:Function) : void
        {
            this.objConnect.call("Aaward.vipAward", new Responder(param2, this.serverFault), {sesskey:GameData.sesskey, data:{viplevel:param1}});
            return;
        }

        public function requestWinNumPrize(param1:int, param2:Function) : void
        {
            this.objConnect.call("Aaward.winAward", new Responder(param2, this.serverFault), {sesskey:GameData.sesskey, data:{rank:param1}});
            return;
        }

        public function requestBagPrize(param1:int, param2:Function) : void
        {
            this.objConnect.call("Alogin.awardBag", new Responder(param2, this.serverFault), {sesskey:GameData.sesskey, data:{type:param1}});
            return;
        }

        public function requestSGJ_ZP_Prize(param1:int, param2:Function) : void
        {
            this.objConnect.call("Alogin.lottery", new Responder(param2, this.serverFault), {sesskey:GameData.sesskey, data:{type:param1}});
            return;
        }

        public function requestSGJ_ZP_Rank(param1:int, param2:Function) : void
        {
            this.objConnect.call("Alogin.getLotteryTop", new Responder(param2, this.serverFault), {sesskey:GameData.sesskey, data:{type:param1}});
            return;
        }

        public function requestInitPayBag(param1:Function) : void
        {
            this.objConnect.call("Alogin.getChargePacks", new Responder(param1, this.serverFault), {sesskey:GameData.sesskey, data:{}});
            return;
        }

        public function requestDrawPayBag(param1:int, param2:Function) : void
        {
            this.objConnect.call("Alogin.awardChargePacks", new Responder(param2, this.serverFault), {sesskey:GameData.sesskey, data:{id:param1}});
            return;
        }

        public function requestCompleteNewHelp(param1:Function) : void
        {
            this.objConnect.call("Alogin.doneNewstudy", new Responder(param1, this.serverFault), {sesskey:GameData.sesskey, data:{}});
            return;
        }

        public function requestWeibo(param1:int, param2:Function) : void
        {
            this.objConnect.call("Alogin.add_idol", new Responder(param2, this.serverFault), {sesskey:GameData.sesskey, data:{type:param1}});
            return;
        }

        public function requestRed(param1:String, param2:Function) : void
        {
            this.objConnect.call("Alogin.getRedBag", new Responder(param2, this.serverFault), {sesskey:GameData.sesskey, data:{code:param1}});
            return;
        }

        public function requestNational(param1:Function) : void
        {
            this.objConnect.call("Alogin.getInvitePacks", new Responder(param1, this.serverFault), {sesskey:GameData.sesskey, data:{}});
            return;
        }

        public function requestDrawNational(param1:int, param2:Function) : void
        {
            this.objConnect.call("Alogin.awardInvitePacks", new Responder(param2, this.serverFault), {sesskey:GameData.sesskey, data:{id:param1}});
            return;
        }

    }
}
